package com.shop.controller;

import com.shop.dto.Dto;
import com.shop.dto.DtoUtil;
import com.shop.entity.classify.Classify;
import com.shop.service.ClassifyServiceRest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/ify")
public class ClassifyController {
    @Autowired
    ClassifyServiceRest classifyServiceRest;
    @GetMapping("queryAllClassify")
    public Dto queryAllClassify(Classify classify){
        return DtoUtil.returnDataSuccess(classifyServiceRest.queryAllClassify(classify));
    }
}
